package com.sprboot.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sprboot.demo.inter.HelloRemote;
/**
 *  Feign 是基于 Ribbon 实现的，所以它自带了客户端负载均衡功能，
 *  Feign 还整合的 Hystrix 来实现服务的容错保护，
 * @author yangli
 *
 */
@RestController
@RequestMapping("/feign")
public class FeignCustomerController {
//	@Autowired
//	private HelloRemote remoteClient;
//
//	@GetMapping("/book")
//	public String getbook() {
//		System.out.println("feign coming....");
//		return remoteClient.getBookName();
//	}
	
}
